from django.db import models

# Create your models here.

class UserInfo(models.Model):
    '''
    用户信息表
    '''
    username=models.CharField(max_length=32,verbose_name='用户名',unique=True)
    mobile_phone=models.CharField(max_length=11,verbose_name='手机号',unique=True)
    password=models.CharField(max_length=64,verbose_name='密码')
    def __str__(self):
        return self.username
    class Meta:
        verbose_name='用户表'
        verbose_name_plural=verbose_name